package com.scs.application.modules.msg.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;
/**
 * <p>
 *
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "信息发送记录表")
@TableName("msg_push_record")
public class PushRecord extends DataEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "消息类型inner",
            length = "10",
            not_null = true,
            default_value = "",
            comment = "站内信、sms：短信、email：邮件"
    )
    private String msgType;

    @EntityFieldAnnotation(
            text = "标题",
            length = "100",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String title;

    @EntityFieldAnnotation(
            text = "内容",
            length = "300",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String content;

    @EntityFieldAnnotation(
            text = "接收人",
            type = EntityFieldType.TEXT,
            not_null = false,
            default_value = "",
            comment = "可能是登录账号、手机号、openid；多个以逗号隔开"
    )
    private String receiver;

    @EntityFieldAnnotation(
            text = "模板标识",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String tplKey;

    @EntityFieldAnnotation(
            text = "模板参数",
            length = "300",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String tplParams;

    @EntityFieldAnnotation(
            text = "是否成功",
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private Integer isSuccess;

    @EntityFieldAnnotation(
            text = "异常内容",
            type = EntityFieldType.TEXT,
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String exceptionContent;


    // creator ,在父类中处理


    // gmt_create ,在父类中处理


    // modifier ,在父类中处理


    // gmt_modified ,在父类中处理

    @EntityFieldAnnotation(
            text = "",
            length = "200",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remarks;

}
